using System;

namespace SpoolFileLibrary.Reader.Emf {
    [CLSCompliant(false)]
    public class DataRecord {
        public uint cjSize;
        public uint ulID;

        public DataRecord() {
        }

        public DataRecord(DataRecord dataRecord) {
            this.ulID = dataRecord.ulID;
            this.cjSize = dataRecord.cjSize;
        }

        public RecordType Type {
            get {
                if(Enum.IsDefined(typeof(RecordType), this.ulID)) {
                    return (RecordType) this.ulID;
                }
                return RecordType.EOF_OR_UNKNOWN;
            }
        }
    }
}